﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Controls.Primitives;

namespace SMS.Views.SalesModule
{
    public partial class SaleDetailForm : UserControl
    {
        public SaleDetailForm()
        {
            InitializeComponent();
            //this.DataContext = new ViewModel.SalesModule.SaleDetailFormViewModel();
            this.MouseLeftButtonDown += new MouseButtonEventHandler(SaleDetailForm_MouseLeftButtonDown);
        }

        void SaleDetailForm_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            var point = e.GetPosition(App.Current.RootVisual);
            Popup p = new Popup();
            p.HorizontalOffset = point.X;
            p.VerticalOffset = point.Y;
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {

        }
    }
}
